directions = {
	(0, 0): -1,
	(1, 0): 0,
	(0, 1): 1,
	(-1, 0): 2,
	(0, -1): 3,
	(1, 1): 1,
}

movements = {
	-1: (0, 0),
	0: (1, 0),
	1: (0, 1),
	2: (-1, 0),
	3: (0, -1),
}

Z_ORDER = ["player", "monster", "wall", "toggle wall", "item", "object", "tile"]

def clamp(minimum, value, maximum):
	return max(minimum, min(value, maximum))